import { useState } from 'react';
import ReactDom from 'react-dom/client';

function App() {
	const [num, setNum] = useState(100);
	window.setNum = setNum;
    
	return <div>{num}</div>;
}

const root = document.querySelector('#root');
ReactDom.createRoot(root).render(<App></App>);
